how to prevent opening a form multiple times in c